package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author deng
 * @package com.sky.mapper
 * @date Created in 2024/7/11 15:24
 */
@Mapper
public interface UserMapper {

    @Select("select * from user where openid = #{openId}")
    User getByOpenId(String openId);


    void insert(User user);

    @Select("select * from user where  id= #{id}")
    User selectById(Long id);
}